package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.TempproductMapper;
import com.mes.entity.cb.Materiel;
import com.mes.entity.hy.Product;
import com.mes.entity.jy.Queryjy;
import com.mes.entity.jy.Tempma;
import com.mes.entity.jy.Tempproduct;
import com.mes.entity.jy.Wlfc;
import com.mes.entity.lz.BOM;
import com.mes.entity.tdd.Rejects;

/**
 * @ClassName: TempproductServiseImpl 
 * @Description:产品线边库
 * @Author jy
 * @Date 2018年3月15日 下午3:44:57 
 * @version 1.0
 */
@Service
@Transactional
public class TempproductServiseImpl implements TempproductServise{

	@Resource
	private TempproductMapper tempproductMapper;
	
	@Override
	public List<Tempproduct> selectTempProduct(Queryjy queryjy) {
		return tempproductMapper.selectTempProduct(queryjy);
	}

	@Override
	public List<Product> selectAllProduct() {
		return tempproductMapper.selectAllProduct();
	}

	@Override
	public List<Tempproduct> selectallTempProduct() {
		return tempproductMapper.selectallTempProduct();
	}

	@Override
	public List<Materiel> selectBomByPnum(String pnum) {
		return tempproductMapper.selectBomByPnum(pnum);
	}

	@Override
	public int counTempProduct(Queryjy queryjy) {
		return tempproductMapper.counTempProduct(queryjy);
	}

	@Override
	public int countpRnumer(Queryjy queryjy) {
		return tempproductMapper.countpRnumer(queryjy);
	}

	@Override
	public int countpCnumer(Queryjy queryjy) {
		return tempproductMapper.countpCnumer(queryjy);
	}

	@Override
	public int createWlfc(Wlfc wlfc1) {
		return tempproductMapper.createWlfc(wlfc1);
	}

	@Override
	public int countWlfc(Queryjy queryjy) {
		return tempproductMapper.countWlfc(queryjy);
	}

	@Override
	public List<Wlfc> selectWlfcList(Queryjy queryjy) {
		return tempproductMapper.selectWlfcList(queryjy);
	}

	@Override
	public Product selectProductByPnum(String pnum) {
		return tempproductMapper.selectProductByPnum(pnum);
	}

	@Override
	public void editRemark7(String code) {
		tempproductMapper.editRemark7(code);
	}

	@Override
	public Materiel selectMaByType(String type) {
		return tempproductMapper.selectMaByType(type);
	}

	@Override
	public List<Product> selectAllProduct2() {
		return tempproductMapper.selectAllProduct2();
	}

	@Override
	public List<Rejects> selectRejectsPagine(Queryjy queryjy) {
		return tempproductMapper.selectRejectsPagine(queryjy);
	}

	@Override
	public int countReject(Queryjy queryjy) {
		return tempproductMapper.countReject(queryjy);
	}

	@Override
	public List<Tempma> selectTempMaByType(String type) {
		return tempproductMapper.selectTempMaByType(type);
	}

	@Override
	public int insertRejects(Rejects rejects2) {
		return tempproductMapper.insertRejects(rejects2);
	}

	@Override
	public int countCode(String code) {
		return tempproductMapper.countCode(code);
	}

	@Override
	public int countNoGoodCode(String code) {
		return tempproductMapper.countNoGoodCode(code);
	}

	@Override
	public Tempproduct selectManyByCode(String code) {
		return tempproductMapper.selectManyByCode(code);
	}

	@Override
	public Integer selectMaStokNumBycode(String code) {
		return tempproductMapper.selectMaStokNumBycode(code);
	}

	@Override
	public Integer updateNumByOrderAndMid(BOM bom) {
		return tempproductMapper.updateNumByOrderAndMid(bom);
	}

}
